package com.black.app.domain.req.store.add;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ApiModel(value = "优惠券添加请求模型")
public class AppStoreCounponsAddReq{

    @ApiModelProperty(value = "优惠券面值", required = true)
    @NotNull(message = "{appstorecoupons.not.couponValue}")
    private BigDecimal couponValue;

    @ApiModelProperty(value = "所需积分", required = true)
    @NotNull(message = "{appstorecoupons.not.pointsRequired}")
    private Integer pointsRequired;

    @ApiModelProperty(value = "优惠券名称", required = true)
    @NotNull(message = "{appstorecoupons.not.couponName}")
    private String couponName;

    @ApiModelProperty(value = "开始时间", required = true)
    @NotNull(message = "{appstorecoupons.not.beginTime}")
    private Date beginTime;

    @ApiModelProperty(value = "结束时间", required = true)
    @NotNull(message = "{appstorecoupons.not.endTime}")
    private Date endTime;

    @ApiModelProperty(value = "状态", required = true)
    @NotNull(message = "{appstorecoupons.not.status}")
    private String status;


}
